Method QueryRowsAsJsonAsync(string, params object[])
Execute SQL and serialize the result rows to a JSON array string in C#
(column names from the reader). SQLite has no row_to_json/json_agg, so the
Pro analytics providers package dynamic-shaped results here instead of in SQL.
Returns "[]" when there are no rows.
public Task<string> QueryRowsAsJsonAsync(string sql, params object[] parameters)